
#ifndef _SIM_H__
#define _SIM_H__

#include <stdint.h>

int SIM_Init(void);

int SIM_PowerOn(uint8_t *atr, uint8_t* alen);

void SIM_PowerOff(void);

int SIM_Exchange(uint8_t* capdu, uint16_t clen, uint8_t* rapdu, uint16_t* rlen);

void SIM_SetBWT(uint32_t bwt);

void SIM_SetWaitTime(uint32_t bwt, uint32_t cwt);

int SIM_IsActive(void);

#endif


